package com.wicket.okrbff.biz.service.dto.common;


import com.wicket.okrbff.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffTributPowerDto
 * @使用场景
 */
@Data
public class BffTributPowerDto extends PagedDto implements Serializable {

    /**
     * 权限分配ID:
     */
    @ApiModelProperty("权限分配ID")
    private String privacyDistributionId;

    /**
     * 权限ID:
     */
    @ApiModelProperty("权限ID")
    private String privacyId;

    /**
     * 权限标识:
     */
    @ApiModelProperty("权限标识")
    private String privacyCode;

    /**
     * 权限名称:
     */
    @ApiModelProperty("权限名称")
    private String privacyName;

    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    /**
     * 个人账号ID:
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 真实头像:
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名:
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称:
     */
    @ApiModelProperty("用户昵称")
    private String nickName;
    /**
     * 权限图标:
     */
    @ApiModelProperty("权限图标")
    private String privacyLogo;
    /**
     * 分配对象类型编码:
     */
    @ApiModelProperty("分配对象类型编码")
    private String typeCode;
    /**
     * 分配对象ID:
     */
    @ApiModelProperty("分配对象ID")
    private String allocationObjectId;
    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 是否存档:
     */
    @ApiModelProperty("是否存档")
    private String isArchive;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffTributPowerDto that = (BffTributPowerDto) o;
      return  privacyDistributionId == that.privacyDistributionId&&privacyId == that.privacyId&&privacyCode == that.privacyCode&&privacyName == that.privacyName&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime&&userId == that.userId&&userFace == that.userFace&&idCardName == that.idCardName&&nickName == that.nickName&&privacyLogo == that.privacyLogo&&typeCode == that.typeCode&&allocationObjectId == that.allocationObjectId&&subjectLifeCycle == that.subjectLifeCycle&&isArchive == that.isArchive;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), privacyDistributionId,privacyId,privacyCode,privacyName,operationInductionId,operateTime,userId,userFace,idCardName,nickName,privacyLogo,typeCode,allocationObjectId,subjectLifeCycle,isArchive);
    }

}
